package com.atguigu.gmall.all.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Fxz
 * @version 1.0
 * @date 2022-02-15 15:54
 */
@Controller
@RequiredArgsConstructor
public class PassportController {

	@RequestMapping("login.html")
	public String loginIndex(HttpServletRequest request) {
		String originUrl = request.getParameter("originUrl");
		request.setAttribute("originUrl", originUrl);
		return "login";
	}

}
